<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ include file="/WEB-INF/layout/header.jsp"%>

<h1>
	<fmt:message key="meterdata.add" />
</h1>
<div class="span-24">
	<form:form action="/meterdata/add" method="post" modelAttribute="meterdata">
		<fieldset>
			<legend>
				<fmt:message key="meterdata.details" />
			</legend>
			<p>
				<form:label for="facilityId" path="facilityId">facilityId</form:label>
				<br />
				<form:select path="facilityId">
					<form:options items="${facilityIds}"/>
				</form:select>
			</p>
			<p>
				<form:label for="readValue" path="readValue">readValue</form:label>
				<br />
				<form:input path="readValue" />
			</p>
			<input type="submit" value="<fmt:message key="meterdata.add" />">
		</fieldset>
	</form:form>
	<a href="/meterdata"><fmt:message key="meterdata.list" /></a>
</div>

<%@ include file="/WEB-INF/layout/footer.jsp"%>